<script type="text/javascript">
$(function () {
	var url = '${contextPath}script/el/classes.js';
	$.ajax({url:url, dataType:'script', cache:true,
		success: function(){
			getEditTopicInfoHasNotTc_classes();
			var page = sys_fill_parm('aidQueryTopicForm1');
			aidqueryTopic1_classes(page);
			showCheckedCheckBoxHasNotTc();
			calcTotalHasTcOrNotTc_classes();
		}
	});
});
</script>

<#import "/freemarker/modeltype.ftl" as mt>
<#import "/freemarker/modeltype_entity.ftl" as mte>
<form id="aidQueryTopicForm1"  class="form-horizontal ng-pristine ng-valid ng-valid-required">
<div>
	<div class="bg-light lter b-b wrapper-md">
	  <h1 class="m-n font-thin h3">题目管理</h1>
	</div>
	<div class="clearfix m-b">
		<div class="mar_div25">
			<table class="search_term_table"> 
				<tr>
				
					<input type="hidden" id="total1"/>
					<input type="hidden" name="k" value="${k!''}" id="k"/>
					<input type="hidden" name="cc" value="${cc!''}" id="courseCode1"/>
					<th style="width:30px;">题干</th>
					<td>
						<input class="form-control" type="text" name="content" style="width:130px;" id="topicContent" />
					</td>
					<th style="width:70px;">题目类型</th>
					<td>
						<@mte.Problemtype  nullstr='请选择' name="type"  classname="form-control" wid="140px;"/>
					</td>
					<th style="width:70px;">题目难度</th>
					<td>
						<@mte.TopicDifficulty  nullstr='请选择' name="tdc"  classname="form-control" wid="140px;"/>
					</td>
					<td style="text-align: right;">
						<button class="btn btn-xs btn-info"  onclick="javascript: aidqueryTopic1_classes(); return false;"><i class="icon-search"></i> 查  询</button>
						<button class="btn btn-xs btn-primary"  onclick="javascript: confirmTopicHasNotTc_classes(); return false;">确 定</button>
					</td>
				</tr>
			</table>
			
		</div>	
	</div>
</div>
</form>
<div style="margin-left: 25px;"><span id="showTopicTotal" style="color:red;"></span></div>
<div id="topicResultList" style="width:60%; float:left;">

</div>

<div class="wrapper-md ng-scope" style="width:35%;float:right;">
	<table class="table table-bordered">
		<thead>
			<tr>
				<th>题干 </th>
				<th>类型 </th>
				<th>难度 </th>
				<th>分值 </th>
				<th style="width:60px;">操作 </th>
			</tr>
		</thead>
		<tbody id="addTbody">
		</tbody>
	</table>
</div>
<table id="tjTable" style="display: none;">
	<tr class="footable-even 111" style="display: table-row;">
		<td><font class="t"></font><input class="tc" type="hidden"/></td>
		<td><font class="a"></font><input class="type" type="hidden"/></td>
		<td><font class="tdn"></font><input class="tdc" type="hidden"/></td>
		<td><input id="point" style="width: 50px;"/></td>
		<td>
			<input type="hidden" class="cc"/>
			<button class="btn btn-xs btn-danger" onclick="javascript: deleteChoiseTopic_classes($(this)); return false;" title="删除">
			<i class="icon-remove"></i>
		</td>
	</tr>
</table>
<table id="addTopicTable" style="display: none;">
	<tr>
		<td><input type="hidden" class="tic"/></td>
		<td><input type="hidden" class="cc"/></td>
		<td><input type="hidden" class="tc"/></td>
		<td><input type="hidden" class="points"/></td>
		<td><input type="hidden" /></td>
		<td><input type="hidden" /></td>
	</tr>
</table>

<table id="topicTable" style="display: none;">

</table>

